using System;
using System.Drawing;
using System.Windows.Forms;
using System.Windows.Forms.Design;
namespace Extra.Utils.UI
{
	public class ImageButtonDesigner : ControlDesigner
	{
		protected override void OnPaintAdornments(PaintEventArgs pe)
		{
			ImageButton imageButton = this.Control as ImageButton;
			if (imageButton != null && imageButton.NormalImage == null)
			{
				Rectangle clipRectangle = pe.ClipRectangle;
				clipRectangle.Width--;
				clipRectangle.Height--;
				pe.Graphics.DrawRectangle(Pens.Gray, clipRectangle);
			}
		}
	}
}
